package com.zxl.study.callback.v2;

import cn.hutool.core.util.IdUtil;

/**
 * @auther zxl
 * @create 2023-08-12 20:22
 */
public class ProgrammerV2 implements RecodeInterface // AImpl，实现了接口
{
    public void code()
    {
        System.out.println("coding");
        new GithubV2().push(this); // B.fb(A)
    }

    @Override
    public void recode() { // 回调函数
        System.out.println("i'm done，commit  SerialNumber:  " + IdUtil.simpleUUID());
    }
}